package xyz.mayday.tools.bunny.todo.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.mayday.tools.bunny.ddd.core.domain.AbstractBaseDTO;
import xyz.mayday.tools.bunny.todo.constant.TodoStateEnum;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "t_todo_rdbms")
public class TodoDO extends AbstractBaseDTO<Long> {

    String name;

    String description;

    @Enumerated(EnumType.STRING)
    TodoStateEnum todoState;
}
